home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BackColor = &H00C0C0C0&
- Caption = "Form1"
- ClientHeight = 5820
- ClientLeft = 1095
- ClientTop = 1770
- ClientWidth = 7365
- Height = 6510
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 388
- ScaleMode = 3 'Pixel
- ScaleWidth = 491
- Top = 1140
- Width = 7485
- Begin TextBox Text1
- Height = 3480
- Left = 990
- TabIndex = 0
- Text = "Text1"
- Top = 630
- Width = 4830
- End
- Begin Menu mnuExit
- Caption = "Exit"
- End
- Sub Apply3D2 (myForm As Form, MyCtl As Control)
- 'The first one is for Sunken effects. Your form should be gray for the color
- 'values I have listed. You will need tho set the form's ScaleMode to pixel. Call
- 'it from the form's Paint sub like so:
- 'For Raised effects just reverse the color values. where the values are 92
- 'put 255 and vise versa.
- myForm.CurrentX = MyCtl.Left - 1
- myForm.CurrentY = MyCtl.Top + MyCtl.Height
- myForm.Line -Step(0, -(MyCtl.Height + 1)), RGB(92, 92, 92)
- myForm.Line -Step(MyCtl.Width + 1, 0), RGB(92, 92, 92)
- myForm.Line -Step(0, MyCtl.Height + 1), RGB(255, 255, 255)
- myForm.Line -Step(-(MyCtl.Width + 1), 0), RGB(255, 255, 255)
- End Sub
- Sub Form_Paint ()
- Call Apply3D2(Me, Text1) ' This would be for a Text Box.
- End Sub
- Sub Form_Unload (Cancel As Integer)
- End
- End Sub
- Sub mnuExit_Click ()
- Unload Me
- End Sub
-